import Vue from 'vue'
import Vuex from 'vuex'
import modules from '@/store/modules'
import state from '@/store/state'
import getters from '@/store/getters'
import mutations from '@/store/mutations'
import actions from '@/store/actions'
import saveInSessionStorage from '@/store/plugins/saveInSessionStorage'

Vue.use(Vuex)

export default new Vuex.Store({
  modules,
  state,
  getters,
  mutations,
  actions,
  plugins: [saveInSessionStorage]
})
